package com.mhs.DTO;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class HLCDTO implements KvmSerializable{
	public String getMa() {
		return MaHLC;
	}
	public void setMa(String ma) {
		MaHLC = ma;
	}
	public String getTable() {
		return TenBang;
	}
	public void setTable(String table) {
		TenBang = table;
	}
	private String MaHLC;
	private String TenBang;
	private String Command;
	
	public String getCommand() {
		return Command;
	}
	public void setCommand(String command) {
		Command = command;
	}
	
	public Object getProperty(int index) {
		switch (index) {
		case 0:
			return this.MaHLC;
		case 1:
			return this.TenBang;
		case 2:
			return this.Command;
		default:
			return null;
		}
	}
	
	public int getPropertyCount() {
		return 3;
	}
	
	@SuppressWarnings("rawtypes")
	public void getPropertyInfo(int index, Hashtable properties, PropertyInfo info) {
		switch (index) {
		case 0:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "MaHLC";
			break;
		case 1:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "TenBang";
			break;
		case 2:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "Command";
			break;
		default:
			break;
		}
	}
	
	public void setProperty(int index, Object value) {
		switch (index) {
		case 0:
			this.MaHLC = value.toString();
			break;
		case 1:
			this.TenBang = value.toString();
			break;
		case 2:
			this.Command = value.toString();
			break;
		default:
			break;
		}
	}
}
